<%@ include file="../common/top.jsp"%>

<div id="Catalog">
    <form action="register" method="post">
<%--        <c:if test="${requestScope.registerMsg != null}">--%>
<%--            <p><font color="red">${requestScope.registerMsg}</font></p>--%>
<%--        </c:if>--%>

    <h3>User Information</h3>

    <table>
        <tr>
            <td>User ID:</td>
            <td><input type="text" name="username" id="username">
                <font color="red"><div id="checkName"></div></font></td>
        </tr>
        <tr>
            <td>New password:</td>
            <td><input type="password" name="password" id="password"></td>
        </tr>
        <tr>
            <td>Repeat password:</td>
            <td><input type="password" name="repeatedPassword" id="repeatedPassword">
                <font color="red"><div id="passwordCheck"></div></font>
            </td>
        </tr>
    </table>

    <%@ include file="includeAccountFields.jsp"%>
        <p>
            Verification Code:<input name="checkCode" type="text" id="checkCode">
            <img id="checkCodeImg" src="checkCode" onclick="change()">
        </p>
        <input type="submit" name="newAccount" value="Save Account Information">

    </form>
</div>
<script type="text/javascript">
    function change(){
        var image = document.getElementById("checkCodeImg");//获取表单元素 通过ID‘
        image.src = "checkCode?"+new Date().getTime();
    }
</script>
<script type="text/javascript" src="js/accountForm.js"></script>

<%@ include file="../common/bottom.jsp"%>
